import java.util.Scanner;

public class demothird {
    public static void main(String[] args) {
        System.out.println("请投币:");
        Scanner input = new Scanner(System.in);
        int n = input.nextInt();
        switch (n) {
            case 2 -> {
                System.out.println("1.怡宝矿泉水 2.农夫山泉矿泉水 3.依云矿泉水");
                System.out.println("请选择:");
                int c1 = input.nextInt();
                switch (c1) {
                    case 1 -> System.out.println("怡宝矿泉水");
                    case 2 -> System.out.println("农夫山泉矿泉水");
                    case 3 -> System.out.println("依云矿泉水");
                    default -> System.out.println("选择错误");
                }
            }
            case 3 -> {
                System.out.println("1.可口可乐 2.冰爽雪碧 3.雪山果汁");
                System.out.println("请选择:");
                int c2 = input.nextInt();
                switch (c2) {
                    case 1 -> System.out.println("可口可乐");
                    case 2 -> System.out.println("冰爽雪碧");
                    case 3 -> System.out.println("雪山果汁");
                    default -> System.out.println("选择错误");
                }
            }
            default -> System.out.println("选择错误");
        }
    }
}
